from django.conf.urls import url, include
from choice.views import SnippetList, SnippetDetail, UserList, UserDetail

urlpatterns = [
    url(r'^users/$', UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', UserDetail.as_view()),
    url(r'^snippets/$', SnippetList.as_view(), name="snippets"),
    url(r'^snippets/(?P<pk>[0-9]+)/$', SnippetDetail.as_view(), name="detail"),
]
urlpatterns += [
    url(r'^api-auth/', include('rest_framework.urls',
                               namespace='rest_framework')),
]